package cc.yaomm.common.basic.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import lombok.Getter;

/**
 * Created by XQL on 2020/5/14.
 * 验证码类型枚举
 */
@Getter
public enum CaptchaType implements SuperEnum<CaptchaType, String> {

    /**
     * 短信
     */
    SMS("SMS", "短信"),

    /**
     * 邮件
     */
    EMAIL("EMAIL", "邮件"),

    /**
     * 图片（base64)
     */
    IMAGE("IMAGE", "图片");

    CaptchaType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    private String value;

    private String name;

    @Override
    public CaptchaType[] enums() {
        return values();
    }
}
